package u1.common;

import java.io.Serializable;
import java.util.HashMap;

/**
 * @author oldliu
 * @since 1.0
 */
//代表服务端的一次回复
public class Response extends HashMap<String,Object> implements Serializable {
    private boolean sucess;//请求是否成功
    private String msg;//信息
    public Response(){

    }
    public Response(boolean b){
        this.sucess=b;
    }
    public Response(boolean b,String m){
        this.sucess=b;
        this.msg=m;
    }
    public boolean isSucess() {
        return sucess;
    }

    public void setSucess(boolean sucess) {
        this.sucess = sucess;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}